package logic.weapons.energyWeapons;

import logic.ships.Ship;
import logic.weapons.WeaponFire;
import logic.weapons.WeaponFireController;
import logic.weapons.WeaponProperties;

import com.jme.bounding.BoundingSphere;
import com.jme.math.Vector3f;
import com.jme.scene.Node;

public class EnergyWeaponFire extends WeaponFire {
	
	private static final long serialVersionUID = 1L;
		
	public EnergyWeaponFire(Ship ship, Node model, Vector3f startLoc, WeaponProperties props, Vector3f dir, 
			EnergyWeapon weapon) {
		super("Energy Weapon Fire", model, ship, startLoc, props, dir, weapon, false);
		this.dir = dir;
		
		fireController = new WeaponFireController(this, ship, dir);
		addController(fireController);
		
		bound = new BoundingSphere(0.5f, getLocalTranslation());
		bound.setCenter(getLocalTranslation());
		
		dodgeBound = bound;
		
		updateRenderState();
	}
	
	@Override
	public void setModelNodeBoundController() {}
	
	@Override
	public float getMass() { return 0f; }
}